package homework_2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @desc:
 * @author: Ping
 * @date: 2025/9/12 14:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Computer {
    /**
     * todo: 按照bean规范要求，为Computer类添加必要的属性和构造方法
     */
    private String brand;
    private String model;
    private CPU cpu;
    private Screen screen;
    public void startup(){
        System.out.println("计算机启动中……");
        System.out.println("计算机品牌："+brand);
        System.out.println("计算机型号："+model);
        System.out.println("CPU信息："+cpu);
        System.out.println("屏幕信息："+screen);
        System.out.println("计算机启动完成！");
    }
}
